package Code_exercise_24.CRM_System;

/**
 * 职位实体
 */
public class PostEntity {
    private Long id;
    private String postName;//职位名称
    private String postCode;//职位编码
    private String deptName;//部门名称
    private String level;//职位级别
    private Integer status;//职位状态 0-禁用 1-启用

    /*自行添加：构造器，getter&setter tostring*/

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPostName() {
        return postName;
    }

    public void setPostName(String postName) {
        this.postName = postName;
    }

    public String getPostCode() {
        return postCode;
    }

    public void setPostCode(String postCode) {
        this.postCode = postCode;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getLevel() {
        return level;
    }

    public void setLevel(String level) {
        this.level = level;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public PostEntity() {
    }

    @Override
    public String toString() {
        return "PostEntity{" +
                "id=" + id +
                ", postName='" + postName + '\'' +
                ", postCode='" + postCode + '\'' +
                ", deptName='" + deptName + '\'' +
                ", level='" + level + '\'' +
                ", status=" + status +
                '}';
    }

    public PostEntity(Long id, String postName, String postCode, String deptName, String level, Integer status) {
        this.id = id;
        this.postName = postName;
        this.postCode = postCode;
        this.deptName = deptName;
        this.level = level;
        this.status = status;
    }
}
